package com.itheima.apis.review;


import com.itheima.apis.note.fallback.INoteClientFallBack;
import com.itheima.apis.review.fallback.IReviewClientFallBack;
import com.itheima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "review-service",fallback = IReviewClientFallBack.class)
public interface IReviewClient {
    @GetMapping("/api/v1/review/book/count")
    ResponseResult countReviewsByBookForUser(@RequestParam Integer userId);
}
